#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
	string s1("hello world");
	reverse(s1.begin(), s1.end());
	for (auto e : s1)
	{
		cout << e << ' ' ;
	}
	return 0;
}